home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
drucker
/
4_pages_on_1
/
remansi.test
< prev
Wrap
Text File
|
1995-03-09
|
5KB
|
153 lines
ABC
LESS(1) LESS(1)
NNAAMMEE
less - opposite of more
SSYYNNOOPPSSIISS
lleessss --??
lleessss [[--[[++]]aaBBccCCddeeEEffHHiimmMMnnNNqqQQrrssSSuuUUww]]
[[--bb _b_u_f_s]] [[--hh _l_i_n_e_s]] [[--jj _l_i_n_e]] [[--kk _k_e_y_f_i_l_e]]
[[--{{ooOO}} _l_o_g_f_i_l_e]] [[--pp _p_a_t_t_e_r_n]] [[--PP _p_r_o_m_p_t]] [[--tt _t_a_g]]
[[--TT _t_a_g_f_i_l_e]] [[--xx _t_a_b]] [[--yy _l_i_n_e_s]] [[--[[zz]] _l_i_n_e_s]]
[[++[[++]]_c_m_d]] [[_f_i_l_e_n_a_m_e]]......
DDEESSCCRRIIPPTTIIOONN
_L_e_s_s is a program similar to _m_o_r_e (1), but which allows
backward movement in the file as well as forward movement.
Also, _l_e_s_s does not have to read the entire input file
before starting, so with large input files it starts up
faster than text editors like _v_i (1). _L_e_s_s uses termcap
(or term33minfo o3xn s(3o#3me s33"3ystems), so it can run on a variety
of terminals. There is even limited support for hardcopy
terminals. (On a harP32445646;345354456"3dcopy terminal, lines which should be
printed at the top oP15"r123456789012345f the screen are prefixed with an up-
arrow.)
Commands are based on both _m_o_r_e and _v_i_. Commands may be
preceded by a decimal number, called N in the descriptions
below. The number is used by some commands, as indicated.
CCOOMMMMAANNDDSS
In the following descriptions, ^X means control-X. ESC
stands for the ESCAPE key; for example ESC-v means the two
character sequence "ESCAPE", then "v".
h or H Help: display a summary of these commands. If you
forget all the other commands, remember this one.
SPACE or ^V or f or ^F
Scroll forward N lines, default one window (see
option -z below). If N is more than the screen
size, only the final screenful is displayed. Warn-
ing: some systems use ^V as a special literaliza-
tion character.
z Like SPACE, but if N is specified, it becomes the
new window size.
RETURN or ^N or e or ^E or j or ^J
Scroll forward N lines, default 1. The entire N
lines are displayed, even if N is more than the
screen size.
1
LESS(1) LESS(1)
d or ^D
Scroll forward N lines, default one half of the
screen size. If N is specified, it becomes the new
default for subsequent d and u commands.
b or ^B or ESC-v
Scroll backward N lines, default one window (see
option -z below). If N is more than the screen
size, only the final screenful is displayed.
w Like ESC-v, but if N is specified, it becomes the
new window size.
y or ^Y or ^P or k or ^K
Scroll backward N lines, default 1. The entire N
lines are displayed, even if N is more than the
screen size. Warning: some systems use ^Y as a
special job control character.
u or ^U
Scroll backward N lines, default one half of the
screen size. If N is specified, it becomes the new
default for subsequent d and u commands.
r or ^R or ^L
Repaint the screen.
R Repaint the screen, discarding any buffered input.
Useful if the file is changing while it is being
viewed.
F Scroll forward, and keep trying to read when the
end of file is reached. Normally this command
would be used when already at the end of the file.
It is a way to monitor the tail of a file which is
growing while it is being viewed. (The behavior is
similar to the "tail -f" command.)
g or < or ESC-<
Go to line N in the file, default 1 (beginning of
file). (Warning: this may be slow if N is large.)
G or > or ESC->
Go to line N in the file, default the end of the
file. (Warning: this may be slow if N is large, or
2
LESS(1) LESS(1)
if N is not specified and standard input, rather
than a file, is being read.)
p or % Go to a position N percent into the file. N should
be between 0 and 100. (This works if standard
input is being read, but only if _l_e_s_s has already
read to the end of the file. It is always fast,
but not always useful.)
{ If a left curly bracket appears in the top line
displayed on the screen, the { command will go to